//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "segmento.h"
#include "lista.cpp"

//---------------------------------------------------------------------------

#pragma package(smart_init)
void Segmento::draw(){
        glLineWidth(2.);
        glColor3f(1,0,0);
        glBegin(GL_LINES);

        for(int i=1; i<=nVertices;i++){
                glVertex2f(vertices->dameDato(i)->getX(),vertices->dameDato(i)->getY());
        }
        glEnd();


}
